 var server_main="http://vip.niukewang.com"
 var str='';
   str+='<nav class="mui-bar mui-bar-tab">'
   str+='<a class="mui-tab-item mui-active" href="http://vip.niukewang.com/m/index.html"> <span class="mui-icon icon iconfont icon-wode"></span> <span class="mui-tab-label">首页</span> </a>'
	str+='<a class="mui-tab-item mui-active" href="http://vip.niukewang.com/user/login/mindex"> <span class="mui-icon icon iconfont icon-wode"></span> <span class="mui-tab-label">个人中心</span> </a>'
	str+='<a class="mui-tab-item mui-active"  href="http://vip.niukewang.com/user/login"> <span class="mui-icon icon iconfont icon-xuexi"></span> <span class="mui-tab-label">开始学习</span> </a>'
	str+='<a class="mui-tab-item mui-active"  href="http://vip.niukewang.com/portal/pay/mpayli"> <span class="mui-icon icon iconfont icon-goumai"></span> <span class="mui-tab-label">我要购买</span> </a>'
	str+='</nav>' 
$('.footer').html(str)


//paraName 等找参数的名称
     function GetUrlParam(paraName) {
         var url = document.location.toString();
         var arrObj = url.split("?");
    
         if (arrObj.length > 1) {
             var arrPara = arrObj[1].split("&");
             var arr;
    
             for (var i = 0; i < arrPara.length; i++) {
                 arr = arrPara[i].split("=");
    
                 if (arr != null && arr[0] == paraName) {
                    return arr[1];
                }
            }
             return "";
         }
         else {
             return "";
         }
     }
    
    
     var urlniutype = GetUrlParam('niutype')
    
    
document.addEventListener('plusready', function() {
var webview = plus.webview.currentWebview();
plus.key.addEventListener('backbutton', function() {
webview.canBack(function(e) {
if(e.canBack) {
webview.back();
} else {
webview.close(); //hide,quit
//plus.runtime.quit();
}
})
});
});

